package com.example.androidmqtt.Entry;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * @author: pjg
 * @time: 2022/9/15
 */
public class Subscribe {

    @TableField("sub_user")
    private Integer subUser;

    @TableField("sub_department")
    private Integer subDepartment;

    @TableField("sub_time")
    private Date subTime;

    @TableField("iscancel")
    private Integer isCancel;

    @Override
    public String toString() {
        return "Subscribe{" +
                "subUser=" + subUser +
                ", subDepartment=" + subDepartment +
                ", subTime=" + subTime +
                ", isCancel=" + isCancel +
                '}';
    }

    public Integer getSubUser() {
        return subUser;
    }

    public void setSubUser(Integer subUser) {
        this.subUser = subUser;
    }

    public Integer getSubDepartment() {
        return subDepartment;
    }

    public void setSubDepartment(Integer subDepartment) {
        this.subDepartment = subDepartment;
    }

    public Date getSubTime() {
        return subTime;
    }

    public void setSubTime(Date subTime) {
        this.subTime = subTime;
    }

    public Integer getIsCancel() {
        return isCancel;
    }

    public void setIsCancel(Integer isCancel) {
        this.isCancel = isCancel;
    }

    public Subscribe() {
    }

    public Subscribe(Integer subUser, Integer subDepartment) {
        this.subUser = subUser;
        this.subDepartment = subDepartment;
    }
}
